﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MINERP.ComControls
{
   public class ConvertValidate
    {

       /// <summary>
        /// 判断是否为Double型
       /// </summary>
       /// <param name="var"></param>
       /// <returns></returns>
       public static bool IsDouble(string var)
       {
           double tempVar;
           return double.TryParse(var,out tempVar);
       }

       /// <summary>
       /// 判断是否为Int型
       /// </summary>
       /// <param name="var"></param>
       /// <returns></returns>
       public static bool IsInt(string var)
       {
           int tempVar;
           return int.TryParse(var, out tempVar);
       }
    }
}
